export default [
  {
    path: '/user',
    layout: false,
    routes: [
      { name: '登录', path: '/user/login', component: './User/Login' },
      { name: '注册 ', path: '/user/register', component: './User/Register' },
    ],
  },
  { path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' },
  { path: '/newPage', name: '新页面', component: './NewPage' },
  { path: '/mainPage', name: '商品展示首页', component: './MainPage' },
  { path: '/petLandingPage', name: '商品列表', component: './PetLandingPage' },
  { path: '/cart', name: '我的购物车', component: './Cart' },
  /*  { path: '/goodsDetail', name: '商品详情', component: './GoodsDetail' },*/
  {
    path: '/order',
    name: '我的订单',
    component: './Order/OrderTable',
  },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      { path: '/admin', redirect: '/admin/sub-page' },
      { path: '/admin/sub-page', name: '二级管理页', component: './Admin' },
    ],
  },
  { path: '/', redirect: '/welcome' },
  { path: '*', layout: false, component: './404' },
  {},
];
